﻿
@{
    ViewBag.Title = Resources.WebStringsWeb.WebTitle;
    Layout = "~/Views/Shared/_LayoutMobile.cshtml";
}

@section css {
    <link href="~/Assets/css/previewImage.css" rel="stylesheet" />
    <style>
        .mui-bar ~ .mui-content .mui-scroll-wrapper {
            top: 44px;
            height: auto;
        }

        .btn_addPic {
            display: block;
            position: relative;
            width: 53px;
            height: 53px;
            overflow: hidden;
            cursor: pointer;
            text-align: center;
        }

        .filePrew {
            display: block;
            position: absolute;
            top: 0;
            left: 0;
            width: 53px;
            height: 53px;
            opacity: 0;
        }
    </style>
}
<header class="mui-bar mui-bar-nav">
    <button type="button" class="mui-left mui-action-back mui-btn mui-btn-link mui-btn-nav mui-pull-left" style="color:white;">
        <span class="mui-icon mui-icon-left-nav" style=""></span>
    </button>
    <h1 class="mui-title" style="color:white;">整改措施</h1>
</header>

<div class="mui-content" style="margin: 5px;" ng-cloak ng-controller="HiddenTroubleController" ng-init="
     Id='@(Request.QueryString["Id"].IsEmpty() ? "0" : Request.QueryString["Id"])';
     pagename = '@(Request.QueryString["pagename"].IsEmpty() ? "" : Request.QueryString["pagename"])';
     GetSolutionDetail(Id);
     Loading = false;
     ImageCount=[0,1,2];
     ">

    <form class="mui-input-group">
        <div class="mui-input-row mui-radio mui-left">
            <label>立即整改</label>
            <input name="radio1" type="radio" disabled ng-checked="!SolutionDetail.IsTemporary">
        </div>
        <div class="mui-input-row mui-radio mui-left">
            <label>临时措施</label>
            <input name="radio1" type="radio" disabled ng-checked="SolutionDetail.IsTemporary">
        </div>
    </form>
    <form class="mui-input-group" style="margin-top:10px;">
        <div class="mui-input-row">
            <label>计划完成时间</label>
            <input type="text" ng-model="SolutionDetail.PlanCompleteTime|JSONDate:'yyyy-MM-dd'" readonly />
        </div>
        <div class="mui-input-row">
            <label>联系部门</label>
            <input type="text" ng-model="SolutionDetail.DepartmentName" readonly />
        </div>
        <div class="mui-input-row">
            <label>联系人</label>
            <input type="text" ng-model="SolutionDetail.Responsible" readonly />
        </div>
    </form>
    <div class="mui-input-row" style="margin: 10px 5px;">
        <textarea id="textarea" rows="5" disabled ng-model="SolutionDetail.SolutionContent"></textarea>
    </div>
    <p>图片附件</p>
    <div class="row image-list" style="margin-top:20px;margin-bottom:50px;">
        <img class="image-item space" style="display:inline-block;margin-left:10px;" ng-src="{{x.FilePath}}" width="50" data-preview-src="" data-preview-group="1" ng-repeat="x in SolutionDetail.FileList" />
    </div>

    <h4>整改记录：</h4>
    <form class="mui-input-group" style="margin-top:10px;" ng-repeat="x in SolutionDetail.RectificationRecordList">
        <div class="mui-input-row">
            <label>整改时间</label>
            <input type="text" ng-model="x.OperateTime|JSONDate:'yyyy-MM-dd'" readonly />
        </div>
        <div class="mui-input-row">
            <label>整改描述</label>
            <input type="text" ng-model="x.Description" placeholder="" readonly />
        </div>
        <div class="mui-input-row">
            <label>登记人</label>
            <input type="text" ng-model="x.EmployeeName" placeholder="" readonly />
        </div>
        <p>图片附件</p>
        <div class="row image-list" style="margin-top:20px;margin-bottom:50px;">
            <img class="image-item space" style="display:inline-block;margin-left:10px;" ng-src="{{y.FilePath}}" width="50" data-preview-src="" data-preview-group="2" ng-repeat="y in x.FileList" />
        </div>
    </form>
    <div style="height:80px;"></div>
</div>
@section js{
    <script src="~/Assets/js/libs/upload.js"></script>
    <script src="~/Assets/js/mui.zoom.js"></script>
    <script src="~/Assets/js/mui.previewimage.js"></script>
    <script src="~/Assets/js/pg/MHiddenTrouble.js?v=@DateTime.Now.ToString("yyyyMMddHHmm")"></script>
    <script>

        mui.showLoading("正在加载..", "div");

        setTimeout(function () {
            mui.hideLoading();
            mui.previewImage();
        }, 3000);
    </script>
}
